package com.qianyu.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qianyu.project.entity.TenderPurchaseDetail;
import com.qianyu.project.entity.TenderPurchasePlan;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 招标采购计划 服务类
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
public interface ITenderPurchasePlanService extends IService<TenderPurchasePlan> {

    /**
     * description: 获取招标物资列表数据 <br/>
     * author: gs   <br/>
     * date: 2021/2/1 <br/>
     * params: [params] <br/>
     * return: com.baomidou.mybatisplus.core.metadata.IPage<com.qianyu.project.entity.TenderPurchasePlan>
     */
    IPage<TenderPurchasePlan> getPageList(Map<String, String> params);

    /**
     * description: 查询最大编号的方法 <br/>
     * author: gs   <br/>
     * date: 2021/2/1 <br/>
     * params: [] <br/>
     * return: java.lang.String
     */
    String getMaxCode();

    /**
     * description: 添加的方法 <br/>
     * author: gs   <br/>
     * date: 2021/2/1 <br/>
     * params: [tenderPurchasePlan, tenderPurchaseDetails] <br/>
     * return: void
     */
    Integer saveWithDetails(TenderPurchasePlan tenderPurchasePlan, List<TenderPurchaseDetail> tenderPurchaseDetails);


    /**
     * description: 根据id获取 <br/>
     * author: gs   <br/>
     * date: 2021/2/1 <br/>
     * params: [id] <br/>
     * return: com.qianyu.project.entity.TenderPurchasePlan
     */
    TenderPurchasePlan getById(String id);
}
